<?php
/** @var yii\data\ArrayDataProvider $dataProvider */
/** @var array $user */
use yii\helpers\Html;
use yii\helpers\Url;

$this->title = $user['nickname'];
$this->params['breadcrumbs'][] = ['url' => ['/user/index'], 'label' => '用户'];
$this->params['breadcrumbs'][] = $this->title;
?>
<?php
echo \yii\widgets\DetailView::widget([
    'model' => $user,
    'attributes' => [
        "subscribe",
        "openid",
        "nickname",
        "sex",
        "language",
        "city",
        "province",
        "country",
        [
            'attribute' => 'headimgurl',
            'format' => 'raw',
            'value' =>  Html::img($user['headimgurl'], ['width'=>100, 'height' => 100]),
        ],
        "subscribe_time",
        "unionid",
        "remark",
        "groupid",
    ]
]);
